import { constantRoutes } from '@/router'
export default {
  namespaced: true, // 开启命名空间

  state: () => ({
    routers: constantRoutes // 默认静态路由
  }),
  mutations: {
    setRouters(state, a) {
      state.routers = [...constantRoutes, ...a]
    }
  }

}

